import java.util.Arrays;

/**
 * @package PACKAGE_NAME
 * @description:
 * @author: 86157
 * @date 2019/7/12 0:19
 * @version: V1.0
 */
public class A {

    public static void main(String[] args) {
        int[] a = {1,4,6,1,2,26,5,6,3};
        System.out.println("原数组："+ Arrays.toString(a));

        for(int i=0;i<a.length;i++){
            for (int j=i;j<a.length;j++){
                if(a[i]>a[j]){
                    int t = a[j];
                    a[j] = a[i];
                    a[i] = t;

                }
            }
        }
        System.out.println(Arrays.toString(a));
    }
}